package com.community.backend.mapper;

import com.community.backend.annotation.AutoFill;
import com.community.backend.enumeration.OperationType;
import com.community.backend.pojo.Maintenance;
import com.community.backend.pojo.dto.MaintenanceQueryDTO;
import com.community.backend.pojo.vo.MaintenanceQueryVO;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.beans.factory.annotation.Autowired;

@Mapper
public interface MaintenanceMapper {
    Page<MaintenanceQueryVO> pageQuery(MaintenanceQueryDTO maintenanceQueryDTO);
    @AutoFill(OperationType.INSERT)
    void insert(Maintenance maintenance);
    @AutoFill(OperationType.UPDATE)
    void update(Maintenance maintenance);
    @AutoFill(OperationType.UPDATE)
    void updateById(Maintenance maintenance);
}
